﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using TarreOA.TarreOAModels;
using TarreOA.TarreOABLL;

public partial class admin_LinkmanListInfo : System.Web.UI.Page
{
    static List<Linkman> list = null;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            list = LinkmanManager.FindBlurLinkman(Convert.ToInt32(Request.QueryString["cid"]));
            GridView1.DataSource = list;
            GridView1.DataBind();
        }
    }
    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GridView1.PageIndex = e.NewPageIndex;
        GridView1.DataSource = list;
        GridView1.DataBind();
    }
    protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName=="showInfo")
        {
            ClientScript.RegisterStartupScript(this.GetType(), "", "window.showModalDialog ('ShowLinkman.aspx?lid=" + e.CommandArgument.ToString() + "', '','status:no;center:yes;scroll:no;resizable:no;help:no;dialogWidth:550px;dialogHeight:400px');", true);
        }
    }
}
